
import axios from 'axios'

export  let HttpRs= async (url,type,data={})=>{
    return new Promise((resolve,reject)=>{
        axios({
            url:url,
            type:type,
            params:data,
            headers:{'Authorization':'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhcGkiLCJpc3MiOiJSdWlZaW5Db3JlIiwiaWQiOiIwMmI0YTFlMS04ZmI0LTQ4OGEtOGJjNS0zZTg2OGY5YWNjMDMiLCJuYW1lIjoi5a6i5oi3IiwiZW1haWwiOiI5NDQwODEwMTlAcXEuY29tIiwicGhvbmVfbnVtYmVyIjoiMTM4ODIxOTgzNzUiLCJuYmYiOjE1Mjc0NjkzMzAsImV4cCI6MTUyODA3NDEzMCwiaWF0IjoxNTI3NDY5MzMwfQ.FJkz5Tz_COoowCKvO9F29tQJrUSNmBmKdprhBZt9fFU'}
        }).then((data)=>{
            resolve(data)
        },err=>{
            reject(err)
        }).catch((err)=>{
            reject(err)
        })
    })

};
